package com.wsx.ones.cloud.feign;

import com.wsx.ones.cloud.product.Product;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wangshuaixin on 17/5/19.
 */
@FeignClient(name = "cloud-product", serviceId = "cloud-product", fallback = FeignServiceFallback.class)
public interface ProductFeign {


    @RequestMapping(
            value = "/Product/product/second",
            method = {RequestMethod.POST}
    )
    String second(@RequestBody Product product);
}
